<nav class="sidebar-main">
    <ul class="nav nav-drawer">
        @foreach(\App\Utils\Auth::getMenus() as $top)
            @if(isset($top['children']))
                @if(\Illuminate\Support\Arr::get(\Illuminate\Support\Arr::get($breadcrumb,0,[]),'id')==$top['id'])
                <li class="nav-item nav-item-has-subnav active open">
                    @else
                    <li class="nav-item nav-item-has-subnav">
                    @endif
                    <a href="javascript:void(0)"><i class="mdi {{$top['tag']}}"></i>{{$top['title']}}</a>
                    <ul class="nav nav-subnav">
                        @foreach($top['children'] as $two)
                            @if(\Illuminate\Support\Arr::get(\Illuminate\Support\Arr::get($breadcrumb,1,[]),'id')==$two['id'])
                                <li class="active">
                            @else
                                <li>
                            @endif
                            <a href="{{url($two['href'])}}">{{$two['title']}}</a></li>
                        @endforeach
                    </ul>
                </li>
            @else
                <li class="nav-item">
                    <a href="javascript:void(0)"><i class="mdi mdi-palette"></i>{{$top['title']}}</a>
                </li>
            @endif
        @endforeach

    </ul>
</nav>

<div class="sidebar-footer">
    <p class="copyright">Copyright &copy; {{date('Y')}}. <a href="https://gitee.com/wlfs/lyearAdmin">王桥江</a> All rights
        reserved.</p>
</div>
